<template>
  <div>
    <el-input v-model="codeval" placeholder="请输入号码"></el-input>
  </div>
</template>

<script>
export default {
  data() {
    return {
        form: ''
    };
  },
  computed: {
    codeval: {
        get() {
            return this.form    // 获取绑定的model数据
        },
        set(val) {
            this.form = val.toUpperCase()    // 设置绑定的model数据用方法大写
        }
    }
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
::v-deep .el-input__inner {
    width: auto;
}
</style>
